---
layout: "default"
title: "Operator: !=="
description: "Swift documentation for the '!==' operator."
root: "/v3.0"
---

<code class="language-swift"> operator !== {
    associativity 
    precedence 
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-excleqeq_-anyobject-rhs_-anyobject">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-excleqeq_-anyobject-rhs_-anyobject">func !==(<wbr>_:<wbr> AnyObject?, rhs: AnyObject?)</a>
        
<div class="comment collapse" id="comment-func-excleqeq_-anyobject-rhs_-anyobject"><div class="p">
    <p>Returns a Boolean value indicating whether two references point to
different object instances.</p>

<p>This operator tests whether two instances have different identities, not
different values. For value inequality, see the not-equal-to operator
(<code>!=</code>) and the <code>Equatable</code> protocol.</p>

<p><strong>Parameters:</strong>
  <strong>lhs:</strong> A reference to compare.
  <strong>rhs:</strong> Another reference to compare.</p>

<p><strong>See Also:</strong> <code>Equatable</code>, <code>===</code>, <code>!=</code></p>

    <h4>Declaration</h4>    
    <code class="language-swift">func !==(lhs: AnyObject?, rhs: AnyObject?) -&gt; Bool</code>
    
    
</div></div>
</div>
